﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Entity.Car_Rental.ProductPropertyType>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        属性分类管理</h2>
    <% using (Html.BeginForm())
       {%>
    <%: Html.ValidationSummary(true) %>
    <%: Html.HiddenFor(model => model.ID) %>
    <fieldset>
        <div class="editor-label">
            名称：
        </div>
        <div class="editor-field">
            <%: Html.TextBoxFor(model => model.Name) %>
            <%: Html.ValidationMessageFor(model => model.Name)%>
        </div>
        <div class="editor-label">
            状态：
        </div>
        <div class="editor-field">
            <%: Html.StatusForSelectList(Model==null?0:Model.Status) %>
        </div>
        <%if (Request.QueryString["flag"] == "edit")
          { %>
        <p class="button-span">
            <%=Html.CreateButton(Common.Background.Entity.UserOperatorRole.ModifyEvent | Common.Background.Entity.UserOperatorRole.AddEvent)%>
        </p>
        <%} %>
    </fieldset>
    <% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">
</asp:Content>
